
#ifndef __PORT_SYSTEM_included
#define __PORT_SYSTEM_included

#include <string>
#include <boost/date_time.hpp>

using namespace std;

namespace Util {

class CSystem {

	static string mHostName;
	static string mHostIPAddress;

public:
	
	typedef __int64 TimeType;
	typedef __int64 Int64;

	static TimeType GetCurrentSeconds() {
		boost::posix_time::ptime time_now = boost::posix_time::second_clock::local_time();
		boost::posix_time::time_duration dur = time_now - boost::posix_time::time_from_string("2013/01/01 00:00:00.000");
		return dur.total_seconds();
	}

	static string& GetHostName();
	static string& GetHostIPAddress();

};

}

#endif //__PORT_SYSTEM_included